<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			table{
				border: none;
			}
			td{
				padding: 10px;
			}
		</style>
	</head>
	<body>
		<script language="JavaScript">
			//6. 使用循环的方式打印九九乘法表, 用表格呈现。
			document.write("<table border='1px' cellspacing='0px'; cellpadding=''>")
			for (var i = 1; i <= 9; i++){
				document.write("<tr>");//循环行数，共九行
				for (j = 1; j <= i; j++) {
					document.write("<td>" + i + "*" + j + "=" + (i * j) + "</td>");
				}document.write("</tr>");
			}document.write("</table>");
		</script>
		</table>
	</body>
</html>
